package drds.binlog.parse;

import drds.binlog.common.Authors;
import drds.binlog.common.LifeCycle;
import drds.binlog.data_object.Entry;
import drds.binlog.parse.exception.ParseException;
import drds.common.Author;

/**
 * 解析binlog的接口
 */
@Author(name = Authors.LI_YANG)
public interface BinlogParser<T> extends LifeCycle
{

    Entry parse(T event, boolean isSeek) throws ParseException;

    void reset();
}
